#!/bin/bash

input_dir_tra=/home/yjy/dataset/IITD-ROI-Mahdieh
output_dir_tra=/home/yjy/PycharmProjects/PalmROI/data/Datasets/IITD

files=`ls "$input_dir_tra"`
for filename in ${files}; do
        person_id=`expr substr "$filename" 1 3`
        echo "....................generating "$filename
        echo $filename" "$person_id >> $output_dir_tra/test_Mahdieh.txt
done